import {defineStore} from "pinia";
import {ref} from 'vue'

export const useChatGptStore = defineStore('chatgpt',()=>{
        const chats = ref( [])
        const setChats = (newChats) =>{
           chats.value = newChats

        }
        const removeChats = () =>{
           chats.value = []
        }
        return {
           chats,setChats,removeChats
        }
    },
    {
        persist:true
    })